<?php

namespace app\report\controller;

use app\common\controller\PCBase;
use app\BaseController;//测试专用
use app\report\logic\MonthlyProfitLogic;
use think\facade\Db;
use Throwable;
use app\common\library\Upload;

class MonthlyProfit extends BaseController
{


    public function initialize(): void
    {
        parent::initialize();
    }

    /**
     * index
     * @throws Throwable
     */
    public function index()
    {
        $params     = $this->request->post();
        $MonthlyProfitLogic = new MonthlyProfitLogic();
        return $MonthlyProfitLogic->index($params);
    }

    /**
     * export
     * @throws Throwable
     */
    public function export()
    {
        $params     = $this->request->post();
        if(empty($params)){
            $params     = $this->request->get();
        }
        $MonthlyProfitLogic = new MonthlyProfitLogic();
        return $MonthlyProfitLogic->export($params);
    }


}
